package cn.edu.xmu.orderpayment.order.microservice;

import cn.edu.xmu.orderpayment.order.microservice.vo.AdvanceSaleRetVo;
import cn.edu.xmu.orderpayment.order.microservice.vo.GrouponActRetVo;
import cn.edu.xmu.privilegegateway.annotation.util.InternalReturnObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


/**
 * @author Chencheng Liao 22920192204238
 * @date 2021/12/23
 */
@FeignClient(value = "activity-service")
public interface ActivityService {

	@GetMapping("internal/grouponactivities/{id}")
	InternalReturnObject<GrouponActRetVo> getGrouponActById(@PathVariable Long id);

	@GetMapping("internal/advancesales/{id}")
	InternalReturnObject<AdvanceSaleRetVo> getAdvanceActById(@PathVariable Long id);
}
